/*
 * @Author: jhy
 * @Date: 2024-07-21 18:30:47
 * @LastEditTime: 2024-09-06 16:44:56
 * @LastEditors: jhy
 * @Description: 
 * @FilePath: /yiyu/szzjzc/src/api/modules/szjy.js
 */
import request from '@/api/request'

let dataTraceUrl = '/api/transaction/getDataTrace/';

if(process.env.NODE_ENV == 'test'){
    dataTraceUrl = '/api/transaction/getDataTraceTemp/';
}


const szjj = {
    // 今日中标总额、笔数接口
    findTodayBidding: (data) => request.get('/api/transaction/findTodayBidding', { params: data }), 
    // 累计中标金额、笔数接口
    findAccumulativeBidding: (data) => request.get('/api/transaction/findAccumulativeBidding', { params: data }), 
    //本年中标金额、笔数接口
    findYearBidding: (data) => request.get('/api/transaction/findYearBidding', { params: data }), 
    //公开招标金额、笔数接口
    findPublicBidding: (data) => request.get('/api/transaction/findPublicBidding', { params: data }), 
    //邀请招标金额、笔数接口
    findInviteBidding: (data) => request.get('/api/transaction/findInviteBidding', { params: data }), 
    //其他采购金额、笔数接口
    findPurchaseBidding: (data) => request.get('/api/transaction/findPurchaseBidding', { params: data }), 
    //采购类型分析接口
    purchaseTypeAnalysis: (data) => request.get('/api/transaction/purchaseTypeAnalysis', { params: data }), 
    //每月中标金额分析
    yearBiddingAnalysis: (data) => request.get('/api/transaction/yearBiddingAnalysis', { params: data }), 
    //集团 各单位采购情况
    yearConditionAnalysis: (data) => request.get('/api/transaction/yearConditionAnalysis', { params: data }), 
    //子公司 各单位采购情况
    yearSonConditionAnalysis: (data) => request.get('/api/transaction/yearSonConditionAnalysis', { params: data }), 
    //数据溯源接口
    getDataTrace: (data) => request.get(`${dataTraceUrl}${data.id}`, { params: data }), 
    // 集团采购详情
    buyingSituationAnalysis: (data) => request.post('/api/transaction/buyingSituationAnalysis',data), 
    // 采购完成情况
    buyingAccomplishAnalysis: (data) => request.post('/api/transaction/buyingAccomplishAnalysis',data),  
    // 招标结果金额统计
    getTotalPrice: (data) => request.post('/api/transaction/getTotalPrice',data), 
    // 招标结果台账接口
    tenderList: (data) => request.post('/api/transaction/tenderList',data), 

    getObject: (data) => request.get('/api/dictionaries/getObject', { params: data }), 
    getProcType: (data) => request.get('/api/dictionaries/getProcType', { params: data }),   
}

export default szjj
